package com.ybkj.o2o.zhuanxian.service.impl;

import com.ybkj.o2o.zhuanxian.entity.Orbit;
import com.ybkj.o2o.zhuanxian.mapper.OrbitMapper;
import com.ybkj.o2o.zhuanxian.service.OrderOrbitService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DefaultOrderOrbitService implements OrderOrbitService {

  @Autowired
  private OrbitMapper orbitMapper;

  @Override
  public Orbit findByOrderId(Long orderId) {

    return orbitMapper.findByOrderId(orderId);
  }

  @Override
  public void insert(Orbit orderOrbit) {

    orbitMapper.insert(orderOrbit);
  }
}
